package spark.utility;

public class DecrementalShortIdFactory implements ShortIdFactory {
	private short currentId;

	public DecrementalShortIdFactory() {
		this((short)0);
	}

	public DecrementalShortIdFactory(short startingId) {
		currentId = startingId;
	}

	@Override
	public short getNextId() {
		return currentId--;
	}
}